from c09 import People
class Student(People):
  # sum = 0
  def __init__(self, school, name, age):
    self.school = school
    # People.__init__(self, name, age)
    super(Student, self).__init__(name, age)
    # 构造函数 不能有返回值
    # self.name = name #实例变量 和对象
    # self.age = age + 1
    # self.__score = 0
    # print(name, age)
  def do_homework(self):
    print(self.name + " homework")
  def marking(self, score):
    self.score = score
class Printer():
  def print_file(self):
    print(self.name)
    print(self.age)

student = Student('beijingdaxue', "zhangsan", age=20)
# student2 = Student("lisi", 19)

print(Student.sum)
# student.do_homework()
# print(student.__dict__) # 保存着student所有的变量

# 方法和函数 的区别

# 继承 封装 多态

# 继承 避免重复代码，重复变量

